import { useState } from 'react'
import { Button } from 'antd'
import { useNavigate } from 'react-router-dom'

const Login = () => {
  const navigate = useNavigate()

  const toHome = () => {
    navigate('/home')
  }
  return (
    <div>
      <h1>登录页</h1>
      <br />
      <Button type="dashed" danger onClick={toHome}>
        去首页
      </Button>
    </div>
  )
}

export default Login
